package com.enjoy.concurrent.ch4.aqs;

import com.enjoy.concurrent.ch4.LockCase;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;

/**
 * 独占锁式、不可重入的锁
 */
@Slf4j
public class SelfLockTest {

    public static void main(String[] args) {
        Lock lock = new SelfLock();

        LockCase.newThread(lock, log);


    }
}
